package com.jy.wms.web;

import com.jy.wms.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName: UserController
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @Author lh
 * @Date 2018/9/13 0013
 */
@Controller
@RequestMapping("/wmsCarrierRouter")
public class WmsCarrierRouter {
    @Autowired
    SysMenuService menuService;
    //主页面
    @RequestMapping(value = "/toCarrierList/{menu}")
    public String toCarrierList(@PathVariable("menu") String menu, Model model) {
        model.addAttribute("functions",menuService.getFunctions(menu));
        return "base/carrier/carrierList";
    }
    //去增加承运商页面
    @RequestMapping(value = "/toAddCarrier")
    public String toAddCarrier() {
        return "base/carrier/addCarrier";
    }
}
